#include <iostream>
using namespace std;
class Base {
 public:
  ~Base() { cout << "~Base()" << endl; }

 private:
  int x;
  int y;
};
class Derived : public Base {
 public:
 private:
  int z;
};
void Test() {
  Derived b;
  b.~Derived();
  return;
}
int main() {
  Test();
  return 0;
}